import request from '@/utils/request'

// 查询防疫物资捐赠管理列表
export function listVirusPreventionMaterialsDonate(query) {
  return request({
    url: '/rural/virusPreventionMaterialsDonate/list',
    method: 'get',
    params: query
  })
}

// 查询防疫物资捐赠管理详细
export function getVirusPreventionMaterialsDonate(id) {
  return request({
    url: '/rural/virusPreventionMaterialsDonate/' + id,
    method: 'get'
  })
}

// 新增防疫物资捐赠管理
export function addVirusPreventionMaterialsDonate(data) {
  return request({
    url: '/rural/virusPreventionMaterialsDonate',
    method: 'post',
    data: data
  })
}

// 修改防疫物资捐赠管理
export function updateVirusPreventionMaterialsDonate(data) {
  return request({
    url: '/rural/virusPreventionMaterialsDonate',
    method: 'put',
    data: data
  })
}

// 删除防疫物资捐赠管理
export function delVirusPreventionMaterialsDonate(id) {
  return request({
    url: '/rural/virusPreventionMaterialsDonate/' + id,
    method: 'delete'
  })
}

// 确认防疫物资已到货
export function confirmVirusPreventionMaterialsDonate(data) {
  return request({
    url: '/rural/virusPreventionMaterialsDonate/confirm',
    method: 'put',
    data: data
  })
}
